package com.atguigu.crowd.funding.mapper;

import com.atguigu.crowd.funding.entity.Role;
import com.atguigu.crowd.funding.entity.RoleExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface RoleMapper {
    int countByExample(RoleExample example);

    int deleteByExample(RoleExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Role record);

    int insertSelective(Role record);

    List<Role> selectByExample(RoleExample example);

    Role selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Role record, @Param("example") RoleExample example);

    int updateByExample(@Param("record") Role record, @Param("example") RoleExample example);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);
    
    List<Role> queryRoleBykeyWord(String keyWord);

	List<Role> getAssignRole(Integer adminid);

	List<Role> getUnAssignRole(Integer adminid);

	void removeAllRoleByAdmin(Integer adminid);

	void reAssignRole(@Param("adminid")Integer adminid,@Param("listRoleId") List<Integer> listRoleId);
}